package com.metastar.boot.common.security.annotation;

import com.metastar.boot.common.security.component.MetastarResourceServerAutoConfiguration;
import com.metastar.boot.common.security.component.MetastarResourceServerConfiguration;
import com.metastar.boot.common.security.feign.MetastarFeignClientConfiguration;

import org.springframework.context.annotation.Import;
import org.springframework.security.config.annotation.method.configuration.EnableGlobalMethodSecurity;

import java.lang.annotation.*;

/**
 * 资源服务注解
 * @author Administrator
 * @date 2022-06-12
 */
@Documented
@Inherited
@Target({ ElementType.TYPE })
@Retention(RetentionPolicy.RUNTIME)
@EnableGlobalMethodSecurity(prePostEnabled = true)
@Import({ MetastarResourceServerAutoConfiguration.class, MetastarResourceServerConfiguration.class,
		MetastarFeignClientConfiguration.class })
public @interface EnableMetastarResourceServer {

}
